package com.passive.lock.service.auth;

import java.util.List;

import com.passive.lock.model.vo.TAuthVo;
import com.passive.lock.utils.Result;

public interface AuthService {
	/**
	 * 查询任务列表
	 * 
	 * @param groupid
	 * @param beginTime
	 * @param endTime
	 * @param authname
	 * @param username
	 * @param employeename
	 * @param limit
	 * @return
	 */
	List<TAuthVo> authList(String groupid, long beginTime, long endTime, String authname, String username,
			String employeename, String authtype, int offset, Integer limit);
	/**
	 * 查询任务列表总数
	 * 
	 * @param groupid
	 * @param beginTime
	 * @param endTime
	 * @param authname
	 * @param username
	 * @param employeename
	 * @return
	 */
	int authListCount(String groupid, long beginTime, long endTime, String authname, String username,
			String employeename, String authtype);
	/**
	 * 删除任务
	 * 
	 * @param tAuthVo
	 * @return
	 */
	Result deleteAuth(TAuthVo tAuthVo);
	/**
	 * 批量删除任务
	 * 
	 * @param tAuthids
	 * @return
	 */
	Result deleteAuthList(List<Integer> tAuthids);
	/**
	 * 修改任务
	 * 
	 * @param tAuthVo
	 * @return
	 */
	Result updateAuth(TAuthVo tAuthVo);
	/**
	 * 添加任务
	 * 
	 * @param tAuthVo
	 * @return
	 */
	Result addAuth(TAuthVo tAuthVo);
	
	

}
